.chatContainer {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    height: calc(100vh - 76px);
    /* border: 3px solid black; */
}

.chatSidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    min-width: 55px;
    /* width: 20%; */
    background-color: #2e2e2e;
}

.chatSidebar .pic {
    margin-top: 20px;
    outline: 1px gray solid;
}

.chatListContainer {

    width: 250px;
    height: 100%;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;


}

.chatListContainer .listHeader {

    min-height: 60px;
    display: flex;
    flex-direction: row;
    align-self: center;
    justify-content: center;
}

.listHeader .searchInputCT {
    margin-top: 15px;
    background-color: #e2e2e2;
    width: 180px;
    height: 30px;
    display: flex;
    justify-items: center;
    align-items: center;
    border-radius: 5px;
}

.searchInputCT .searchEmoji {
    user-select: none;
}

.searchInputCT .searchInput {
    outline: none;
    background-color: #e2e2e2;
    width: 100%;
    height: auto;
    display: flex;
    align-self: center;
}

.listHeader .addButton {
    border-radius: 5px;
    margin-top: 15px;
    margin-left: 10px;
    height: 30px;
    width: 30px;
    background-color: #e2e2e2;
}

.listHeader .addButton:hover {
    cursor: pointer;
    background-color: #c9c7c6;
}

.chatListContainer .chatListItems {
    overflow-y: auto;
    /* 允许垂直滚动 */

    -ms-overflow-style: none;
    width: 250px;
    max-height: 100%;

    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;

}

.chatListItems .chatList {
    height: 60px;
    min-height: 60px;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    gap: 10px;

}

.chatListItems .chatList:hover {
    height: 60px;
    background-color: #c9c7c6;
}

.chatList .pic {
    margin-left: 10px;

}

.chatList .primariyMessage {
    display: flex;
    flex-direction: column;
}

.primariyMessage .listUserName {
    font-size: 0.9rem;
}

.primariyMessage .listMessage {
    font-size: 0.8rem;
    color: #999999;
}

.chatBox {
    width: calc(100vw - 305px);
    background-color: #f5f5f5;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;

}

.chatBox .chatBoxHeader {
    min-height: 60px;
    width: 100%;
    outline: 1px solid #e7e7e7;
    display: flex;
    align-items: center;
}

.chatBoxHeader h1 {
    font-size: 1.2rem;
    margin-left: 20px;
}


.chatBox .chatBoxBody {
    outline: 1px solid #e7e7e7;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.chatBoxBody .receiveChatBoxList {
    margin-top: 25px;
    margin-left: 25px;
    display: flex;
    flex-direction: row;

    /* align-items: center; */

}

.receiveChatBoxList .receivechatBoximg {
    height: 35px;
    width: 35px;

}

.receiveChatBoxList .receiveMessage {
    word-break: break-word;
    max-width: 70%;
    margin-left: 10px;
    padding: 10px;
    background-color: rgb(255, 255, 255);
    border-radius: 5px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}



.chatBoxBody .postChatBoxList {
    margin-top: 25px;
    margin-right: 25px;
    display: flex;
    flex-direction: row-reverse;


}

.postChatBoxList .postchatBoximg {
    height: 35px;
    width: 35px;

}

.postChatBoxList .postMessage {
    word-break: break-word;
    max-width: 70%;
    margin-right: 10px;
    padding: 10px;
    background-color: #95ec69;
    border-radius: 5px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

.chatBox .chatBoxInput {
    height: 300px;
}

.chatBoxInput .chatInputToolsBar {
    min-height: 30px;
    width: 100%;

}

.chatBoxInput .chatInputForm {

    display: flex;
    width: 100%;
    flex-direction: column;


}

.chatInputForm .chatInputText {
    resize: none;
    min-height: 100px;
    margin-left: 15px;
    width: calc(100% - 15px);
    outline: none;
}

.chatInputForm .chatInputButton {
    border-radius: 5px;
    outline: none;
    align-self: flex-end;
    margin-top: 10px;
    margin-right: 20px;
    min-height: 30px;
    width: 80px;
    background-color: #e9e9e9;
    color: #07c160;

}

@media(max-width:600px) {
    .chatListContainer {

        width: 545px;
        height: 100%;
        background-color: #f7f7f7;
        display: flex;
        flex-direction: column;


    }

    .chatBox {
        display: none;
    }
}